/*
 * PackingItem.java 2012-8-21
 * Copyright(c) 20012-2015 by covidien
 * ALL Rights Reserved.
 */
package com.mvc.business.model;

import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

/**
 * 
 * @author Bob pu [bangxiong.pu@covidien.com]
 * @version V1.0 Create Time: 2012-8-21
 */
@Entity(name = "B_PACKING_ITEM")
public class PackingItem extends BaseUnit {

	@NotNull
	private Integer	packingId;
	@Length(max = 64)
	private String	description;
	@Length(max = 64)
	private String	palletNo;
	@NotNull
	private String	productNo;
	@NotNull
	private Integer	packages;
	@NotNull
	private Double	netWeight;
	@NotNull
	private Double	grossWeight;
	@NotNull
	private Double	measurement;
	private Double	packageUnit;
	@NotNull
	private Integer	orderItemId;

	/**
	 * @return the packingId
	 */
	public Integer getPackingId() {
		return packingId;
	}

	/**
	 * @param packingId
	 *            the packingId to set
	 */
	public void setPackingId(Integer packingId) {
		this.packingId = packingId;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the palletNo
	 */
	public String getPalletNo() {
		return palletNo;
	}

	/**
	 * @param palletNo
	 *            the palletNo to set
	 */
	public void setPalletNo(String palletNo) {
		this.palletNo = palletNo;
	}

	/**
	 * @return the netWeight
	 */
	public Double getNetWeight() {
		return netWeight;
	}

	/**
	 * @param netWeight
	 *            the netWeight to set
	 */
	public void setNetWeight(Double netWeight) {
		this.netWeight = netWeight;
	}

	/**
	 * @return the grossWeight
	 */
	public Double getGrossWeight() {
		return grossWeight;
	}

	/**
	 * @param grossWeight
	 *            the grossWeight to set
	 */
	public void setGrossWeight(Double grossWeight) {
		this.grossWeight = grossWeight;
	}

	/**
	 * @return the measurement
	 */
	public Double getMeasurement() {
		return measurement;
	}

	/**
	 * @param measurement
	 *            the measurement to set
	 */
	public void setMeasurement(Double measurement) {
		this.measurement = measurement;
	}

	/**
	 * @return the packages
	 */
	public Integer getPackages() {
		return packages;
	}

	/**
	 * @param packages
	 *            the packages to set
	 */
	public void setPackages(Integer packages) {
		this.packages = packages;
	}

	public String getProductNo() {
		return productNo;
	}

	public void setProductNo(String productNo) {
		this.productNo = productNo;
	}

	public Double getPackageUnit() {
		return packageUnit;
	}

	public void setPackageUnit(Double packageUnit) {
		this.packageUnit = packageUnit;
	}

	public Integer getOrderItemId() {
		return orderItemId;
	}

	public void setOrderItemId(Integer orderItemId) {
		this.orderItemId = orderItemId;
	}

}
